﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.WebPages.Teacher
{
    public partial class LadyDeeds : System.Web.UI.Page
    {
        TechnologySchoolEntities db = new TechnologySchoolEntities();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int total = db.LadyInfo.Count();
                AspNetPager1.RecordCount = total;
                BindData();
            }
        }

        private void BindData()
        {
            rep_ladys.DataSource = DAL.PagerHelper.GetPagerData("LadyInfo", "lid,imgPath,name,jj", "name",
                AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, "");
            rep_ladys.DataBind();
        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            BindData();
        }
    }
}
